<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">

  <%= htmlWebpackPlugin.options.plusReady %>
    <!-- 如果有使用mui,就不要注释下面的标签  -->
    <script><%= htmlWebpackPlugin.options.muiScriptString %></script>


    <title>人保汽车后市场服务系统</title>
</head>

<body>
  <div id="app"></div>
  <script>
      function plusReady() {
        plus.key.addEventListener(
          "backbutton",
          function () {
            // console.log('可能也到了这里')
            var ws = plus.webview.currentWebview();
            // print(ws)
            if (ws.webviewPreload == true) {
              plus.webview.hide(ws, 'auto');
              // console.log('影藏了');
            } else {
              plus.webview.close(ws, 'zoom-fade-in');
            }
            // console.log(ws)

          },
          false
        );
      }
    if (window.plus) {
      plusReady();
    } else {
      document.addEventListener("plusready", plusReady, false);
    }
    // plus.nativeUI.toast('嘿嘿');
  </script>
</body>

</html>